package com.qingfeng.client.dao;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.client.bean.OrderGoods;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {
    int insertList(@Param("list")List<OrderGoods> list);

    int updateStatByTradeId(@Param("updatedStat")Integer updatedStat,@Param("tradeId")Long tradeId);

    int updateStatByOrderStoreId(@Param("updatedStat")Integer updatedStat,@Param("orderStoreId")Long orderStoreId);


    int canclePayByTradeId(@Param("tradeId")Long tradeId);

    List<OrderGoods> selectByTradeId(@Param("tradeId")Long tradeId);

    List<OrderGoods> selectByOrderStoreId(@Param("orderStoreId")Long orderStoreId);






}
